package com.ruan.controller;

import com.ruan.entity.Expert;
import com.ruan.entity.R;
import com.ruan.service.ExpertService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName:ExpertController
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/10/7 14:57
 **/
@RestController
@RequestMapping("/expert")
@Api(tags = "专家相关接口")
public class ExpertController {

    @Autowired
    private ExpertService expertService;

    @ApiOperation("获得前四个专家列表")
    @GetMapping("/getExpert")
    public R<List<Expert>> getExpert(){
        return expertService.getExpert();
    }
}
